﻿export default [
  {
    path: '/user',
    layout: false,
    routes: [
      {
        path: '/user',
        routes: [
          {
            name: 'login',
            path: '/user/login',
            component: './user/login',
          },
        ],
      },
    ],
  },
  {
    path: '/dashboard',
    name: 'dashboard',
    icon: 'dashboard',
    component: './Dashboard',
  },
  {
    path: '/user-management',
    name: 'user.management',
    component: './UserManagement',
    icon: 'user',
  },
  {
    path: '/charger',
    name: 'charger',
    component: './Charger',
    icon: 'control',
  },
  {
    path: '/park',
    name: 'park',
    component: './Park',
    icon: 'fileText',
  },
  {
    path: '/sit-info',
    name: 'sit.info',
    component: './SitInfo',
    icon: 'car',
  },
  {
    path: '/record',
    name: 'record',
    icon: 'unorderedList',
    routes: [
      {
        name: 'adminLogin',
        path: '/Record/adminLogin',
        component: './Record/adminLogin',
      },
      {
        name: 'userRecord',
        path: '/Record/userRecord',
        component: './Record/userRecord',
      },
      {
        name: 'vipLog',
        path: '/Record/vipLog',
        component: './Record/vipLog',
      },
      {
        name: 'recharge',
        path: '/Record/recharge',
        component: './Record/recharge',
      },
      {
        name: 'incomeLog',
        path: '/Record/incomeLog',
        component: './Record/incomeLog',
      },
    ],
  },
  {
    path: '/',
    redirect: '/dashboard',
  },
  {
    component: './404',
  },
];
